<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="~{common/header :: commonHead}">
    <title>图片详情</title>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改权益</h5>
                </div>
                <div class="ibox-content">
                    <form class="row form-body form-horizontal m-t" method="post"
                          th:action="${'/image/edit'}">
                        <input name="id" th:value="${editable?.id}" style="display: none">
                        <div class="col-md-12 droppable sortable ui-droppable ui-sortable">
                            <div class="form-group draggable ui-draggable dropped" style="position: static;">
                                <label class="col-sm-3 control-label"><span style="color: red;">* </span>上传图片：</label>
                                <div class="col-sm-6">
                                    <div id="add_icons" class="add_icons">
                                        <div class="add_icon_pan">
                                            <input name="upload_pic"
                                                   id="upload_pic" type="file"
                                                   accept="image/*"
                                                   control_id="control_id"
                                                   image_id="image_id"
                                                   class="upload_pic_input" style="">
                                            <img id="uploaded_pic"
                                                 th:class="${editable?.imageAddress != null ? '' : 'hide' }"
                                                 th:src="${editable?.imageAddress != null ? editable.imageAddress : ''}"/>
                                            <div th:class="'mark ' + ${editable?.imageAddress != null ? '' : 'hide' }">
                                                <div class="close_icon_button"
                                                     control_id="imageAddress"></div>
                                            </div>
                                            <label for="upload_pic"
                                                   th:class="'add_icon_button ' + ${editable?.imageAddress != null ? 'hide' : ''}"></label>
                                        </div>
                                    </div>
                                    <label class="help-block">logo 200*200 100k以内</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 col-md-4 col-sm-12 control-label" for="control_id"></label>
                                <div class="col-lg-4 col-md-8 ">
                                    <input class="form-control" id="control_id" name="imageAddress" type="text"
                                           th:value="${editable?.imageAddress}" style="display: none;">
                                    <input class="form-control" id="image_id" name="imageId" type="text"
                                           th:value="${editable?.id}" style="display: none;">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>

                            <div class="form-group draggable ui-draggable">
                                <div class="col-sm-12 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>

                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="/js/plugins/chosen/chosen.jquery.js"></script>
</html>
